package com.moonciki.artadmin.web.mybatis.entity.fuzhu;

import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import java.util.List;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 学生对象 fz_student
 *
 * @author ruoyi
 * @date 2022-02-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "fz_student")
public class FzStudent {

    /** id **/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 姓名 **/
    private String name;
    /** 年龄（1,2） **/
    private Long age;
    /** ip **/
    @Column(name = "ip_address")
    private String ipAddress;
    /** 创建时间 **/
    @JSONField(format= "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;

    /** 分数信息 */
    private List<FzStudentScore> fzStudentScoreList;

}
